<script type="text/javascript" src="js/updLower.js"></script>
<link rel="stylesheet" type="text/css" href="css/basic.css"/>
<script type="text/javascript" src="js/ui/CreateTempImg.js"></script>
<script type="text/javascript" src="js/jquery.getareas.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($){
	$("#area").getAreas({update:true,pro_id:<?=$m_info['province']?>,city_id:<?=$m_info['city']?>,county_id:<?=$m_info['country']?>,depth:2});
    $(".d_province").css("width","150px");
    $(".d_province").css("height","30px");
});
function apply(){
	$.getJSON("call/jh_mem.php", { action:'ApplyCreate', dtype:1, data:''}, function(json){
		if(json['status']!='ok'){alert(json['msg']);}
		else{alert("申请成功!请静候客服处理。");window.location.reload();}
	});
}
</script>
<link rel="stylesheet" type="text/css" href="css/basic.css"/>
        <div class="r_content">
        	<?include("info_head.html");?>
            <div class="degcon">
            <form action="account_info.php" method="post" target="ifr" >
				<input type="hidden" name="id" value="<?=$_SESSION['memberID']?>" />
            	<p><b>账号类型：</b><span><?=$type?></span><?if($_SESSION['dtype']==1 && !$hide){?><a class="xiu" href="javascript:void(0)" onclick="apply()">申请成为供应商</a><?}elseif($_SESSION['dtype']==1){?><a class="xiu" >供应申请审核中</a><?}?></p>
                <p><b>账户名称：</b><span><input type="text" class="inptxt wid130" name="dname" value="<?=$m_info['dname']?>"  /></span></p>
                <p><b><?if($m_info['dtype']==5){?>姓名<?}else{?>企业名称<?}?>：</b><?if($_SESSION['memberID']!=1){?><span><?=$m_info['com_name']?></span><a class="xiu grey2">（如需修改,请联系客服。）</a><?}else{?><span> <class="inptxt wid270" type="text" name="com_name" value="<?=$m_info['dname']?>" ></span><?}?></p>
			<?if($m_info['dtype']!=5){?>
                <p><b>公司简称：</b><span><input type="text" class="inptxt wid130" name="short_company_name" value="<?=$m_info['short_company_name']?>" onclick="cl(this,'最多4个字')" /></span></p>
                <p>
                	<b>公司类型：</b>
                    <span>
                    	<label for="view"><input type="radio" class="val2" id="view" name="com_type[]" <?if(in_array("景区",$com_type))echo "checked";?> value="景区" />景区</label>
                        <label for="hotel"><input type="radio" class="val2" id="hotel" name="com_type[]" <?if(in_array("酒店",$com_type))echo "checked";?> value="酒店" />酒店</label>
                    	<label for="travel"><input type="radio" class="val2" id="travel" name="com_type[]" <?if(in_array("旅行社",$com_type))echo "checked";?> value="旅行社" />旅行社</label>
                    	<label for="stores"><input type="radio" class="val2" id="stores" name="com_type[]" <?if(in_array("加盟门店",$com_type))echo "checked";?> value="加盟门店" />加盟门店</label>
                    	<label for="buy"><input type="radio" class="val2" id="buy" name="com_type[]" <?if(in_array("电商",$com_type))echo "checked";?> value="电商" />电商</label>
                        <label for="OTA"><input type="radio" class="val2" id="OTA" name="com_type[]" <?if(in_array("团购网",$com_type))echo "checked";?> value="团购网" />团购网</label>
                    	<label for="tmail"><input type="radio" class="val2" id="tmail" name="com_type[]" <?if(in_array("淘宝/天猫",$com_type))echo "checked";?> value="淘宝/天猫" />淘宝/天猫</label>
                    	<label for="other"><input type="radio" class="val2" id="other" name="com_type[]" <?if(in_array("其他",$com_type))echo "checked";?> value="其他" />其他</label>
                    </span>
                </p>
                <p><b>网址：</b><span><input type="text" class="inptxt wid270" name="website" value="<?=$m_info['website']?>" /></span></p>
                <p><b>所在地区：</b><span class="colc" id="area"></span></p>
                <p><b>公司地址：</b><span><input type="text" class="inptxt wid330"  onchange="isStr(this);" name="address" value="<?=$m_info['address']?>" /></span></p>
                <p>
                	<b>经营范围：</b><span><textarea class="txta inptxt" name="business"><?=$m_info['business']?></textarea></span>
                </p>
			<?	}?><!-- 
                <p><b>手机号码：</b><span><input type="text" class="inptxt wid130" onkeyup="press_num(this)" onafterpaste="press_num(this)" name="mobile" id="ch_mobile" value="<?=$m_info['mobile']?>"  /></span></p>
                <p><b><i class="red">*</i>支付宝账号：</b><span><input type="text" class="inptxt wid130"  name="alipay" value="<?=$m_info['alipay']?>" /></span></p> -->
                
                <p>
                	<input type="submit" class="bcun" value="保存"  />
                </p>
            </form>
            </div>
        </div>
<iframe name="ifr" style="display:none;"></iframe>